import request from '@/utils/request'

//获取指定类型的分组树
export const listleft = (obj) => {
  return request({
    url: '/resource/group​/tree/device',
    method: 'get',
    params: obj
  })
}

//新增分组
export const addObj = (obj) => {
  return request({
    url: '/resource/group',
    method: 'post',
    data: obj
  })
}
//修改分组
export const updateObj = (obj) => {
    return request({
      url: '/resource/group',
      method: 'put',
      data: obj
    })
  }
//删除设备分组
  export const delObj = (groupId) => {
    return request({
      url: '/resource/group/' + groupId,
      method: 'delete'
    })
  }

  